Skip to main content

Defined in: src/constructs/s3static-site/s3static-site.ts:52

Private S3 bucket for static web assets served through CloudFront with Origin Access Control.

This is intentionally not an S3 static website bucket (no website endpoint or public bucket policy). CloudFront should use the REST API origin with OAC.

Extends​

  • Construct

Constructors​

Constructor​

new S3StaticSite(scope, id, props?): S3StaticSite

Defined in: src/constructs/s3static-site/s3static-site.ts:55

Parameters​

scope​

Construct

id​

string

props?​

S3StaticSiteProps = {}

Returns​

S3StaticSite

Overrides​

Construct.constructor

Properties​

bucket​

readonly bucket: Bucket

Defined in: src/constructs/s3static-site/s3static-site.ts:53


node​

readonly node: Node

Defined in: node_modules/.pnpm/constructs@10.0.5/node_modules/constructs/lib/construct.d.ts:305

The tree node.

Stability​

stable

Inherited from​

Construct.node

Methods​

toString()​

toString(): string

Defined in: node_modules/.pnpm/constructs@10.0.5/node_modules/constructs/lib/construct.d.ts:319

Returns a string representation of this construct.

Returns​

string

Stability​

stable

Inherited from​

Construct.toString


isConstruct()​

static isConstruct(x): x is Construct

Defined in: node_modules/.pnpm/constructs@10.0.5/node_modules/constructs/lib/construct.d.ts:299

(deprecated) Checks if x is a construct.

Parameters​

x​

any

Any object.

Returns​

x is Construct

true if x is an object created from a class which extends Construct.

Deprecated​

use x instanceof Construct instead

Inherited from​

Construct.isConstruct